package aygx.hot_deployment;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author 暗影孤星
 * @date 2020/10/26 22:21
 * @explanation
 */
@SpringBootApplication
public class HotDeploymentApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(HotDeploymentApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        //设置启动类
        builder.sources(HotDeploymentApplication.class);
        return builder;
    }
}
